//backtype=1:跳转到其他页,=2跳转到tabbar
export const checkLogin=function(backpage,backtype,data){
	console.log('检查是否登陆')
	var user=uni.getStorageSync('user');
	var loginToken=uni.getStorageSync('loginToken');
	
	if(user == '' || loginToken == ''){
		uni.redirectTo({
			url:'/components/login/login?backpage='+backpage+'&backtype='+backtype+'&data='+data
		});
		return false;
	}
	return true;
}